package com.example.messagedemo.conifg;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(ignoreUnknownFields = true, prefix = "message-client")
public class ClientConfig {
    // rocketmq NameServer 地址
    String nameSvrAddr;
    // 消息中心地址
    String centSvrAddr;
    // 用户名
    String accessKey;
    // 密码
    String secretKey;
    // 令牌
    String token;

    public String getNameSvrAddr() {
        return nameSvrAddr;
    }

    public void setNameSvrAddr(String nameSvrAddr) {
        this.nameSvrAddr = nameSvrAddr;
    }

    public String getCentSvrAddr() {
        return centSvrAddr;
    }

    public void setCentSvrAddr(String centSvrAddr) {
        this.centSvrAddr = centSvrAddr;
    }

    public String getAccessKey() {
        return accessKey;
    }

    public void setAccessKey(String accessKey) {
        this.accessKey = accessKey;
    }

    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }
}
